<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<div id="content">
	<c:forEach items="${courses.content}" var="course">

		<div class="loop-entry clearfix">
			<h2>
				<a href="${ctx}/admin/course/update/${course.id}" title="${course.courseName}">${course.courseName}</a>
			</h2>
			<div class="post-meta">
				<span class="meta-date">${course.courseDate}</span> <span
					class="meta-comments"><a href="#"
					title="Comment on ${course.courseName}">0 Comments</a> </span>
			</div>
			<a href="#"
				title="Digital Photography Triumph – The Essential Guide to Launch a Digital Photography Business"
				class="loop-entry-thumbnail"> 
				
				<img src="${ctx}/static/upload/${course.courseImg}"
					class="attachment-cropped-thumb wp-post-image" alt="DPT-thumb"
					title="DPT-thumb" style="opacity: 1;">
				
			</a> 
			
			${course.courseDesc}
			
			<hr class="break-5">
			<a href="#" title="${course.courseName}"
				class="gh-button icon arrowright">continue reading</a>
				
			<a href="${ctx}/admin/course/delete/${course.id}">删除</a>
			<a href="${ctx}/admin/courseDetail/create?courseId=${course.id}">添加</a>
		</div>
		<div class="clear"></div>
	</c:forEach>
	
	<tags:adminpagination page="${courses}" paginationSize="5" />

</div>